﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfOrdenCompraBnd.aspx.cs" Inherits="wfCompras.wfOrdenCompraBnd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
           <link href="../Styles/General.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/token-input-facebook.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
   
    <script src="../Scripts/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.purr.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>

    
     <script  type="text/javascript">
         function DevolverDatos(codigo, Descrip) {
             opener.fDevolverSeleccion3(codigo, Descrip);
         }
     </script>

    </head>
<body>
    <form id="form1" runat="server">


   
      <div class="ToolBar">
           <asp:ImageButton ID="btnNuevo" runat="server" ToolTip="Grabar" 
               onclick="btnNuevo_Click"/>
           
           <asp:Label ID="Label19" runat="server" Font-Bold="True" ForeColor="Black" 
               Text="Nuevo"></asp:Label>
           &nbsp;
                      
           &nbsp;
           </div>
  <br />
 <div align="center">
    <div>
 
        <div>
                
      
                Codigo O/C
           &nbsp;
                    <asp:TextBox ID="txtIdOrdenCompra" runat="server" CssClass="esdTextBox" 
                    Width="100px"></asp:TextBox>
             &nbsp;
      
      
                Producto
          &nbsp;
                    <asp:TextBox ID="txtProducto" runat="server" CssClass="esdTextBox" 
                    Width="300px"></asp:TextBox>
          &nbsp;
     
      
      
                    <asp:Button ID="btnLimpiar" runat="server"  Text="Limpiar" 
                    CssClass="esdButtonStyle" Width="80px" />
      
        
        &nbsp;<asp:Button ID="btnBuscar" runat="server" onclick="btnBuscar_Click" 
                        Text="Buscar" CssClass="esdButtonStyle" Width="80px" />
              
         
        </div>
        <div>
           <br /> 
        </div>
        <div>
       
     <br />
        
        </div>
   
    </div>
    <div>
    <div style="overflow: auto;  height: 400px">
    <div class="DataDetail">
                    <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" 
                        CellPadding="0" GridLines="None" AllowSorting="True" 
                        onrowcommand="gvList_RowCommand" >
                    
                        <AlternatingRowStyle CssClass="esdGridAlternativeRowStyle" />
                        <Columns>

                                     <asp:TemplateField>
                                         <HeaderStyle Width="20px" />
                                        <ItemStyle HorizontalAlign="Center" Width="20px" CssClass="etiqueta"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ImageButton1" runat="server" CommandName="cmdadd" CommandArgument='<%# Bind("Id_ordenco") %>'
                                             Text='<%# DataBinder.Eval(Container, "DataItem.Id_ordenco") %>' 
                                                ImageUrl="~/Images/Icons/Enabled/AddFolder.png" ToolTip="Añadir Factura" />
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                 <asp:TemplateField HeaderText="Id O/C">
                                        <ItemStyle HorizontalAlign="Center" Width="70px" CssClass="etiqueta"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lblOCCodigo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Id_ordenco") %>'
                                                CommandArgument='<%# Bind("Id_ordenco") %>' CommandName="Detalle" CssClass="textoTabulado"
                                                CausesValidation="false" ToolTip="Consulta OC"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                            <asp:TemplateField HeaderText="Fecha">
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("fe_ordenco") %>'></asp:Label>
                                </ItemTemplate>
                             
                                <HeaderStyle Width="100px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Proveedor">
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("ds_raznombre") %>' 
                                        Width="250px"></asp:Label>
                                </ItemTemplate>
                         
                                <HeaderStyle Width="300px" />
                                <ItemStyle Width="300px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="OP">
                                <ItemTemplate>
                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("id_op") %>'></asp:Label>
                                </ItemTemplate>

                                <HeaderStyle Width="50px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Producto">
                                <ItemTemplate>
                                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("ds_producto") %>' 
                                        Width="250px"></asp:Label>
                                </ItemTemplate>
                           
                                <HeaderStyle Width="200px" />
                                <ItemStyle Width="300px" />
                            </asp:TemplateField>
    
                        </Columns>
                        <HeaderStyle CssClass="esdGridHeaderStyle" />
                        <PagerStyle CssClass="gridPagerStyle" />
                        <RowStyle CssClass="esdGridRowStyle" />
                        <SelectedRowStyle CssClass="esdGridSelectedRowStyle" />
                    </asp:GridView>
             </div>

             <div>
          
                 
             </div>
          </div>
          <div>

                 <asp:Label ID="Message" runat="server"></asp:Label>
          </div>
    </div>
    </div>
    </form>
</body>
</html>
